// 名片
import request from '/@/utils/request'
import {prefix} from '/@/api/sys'

/**
 * 获取本人名片列表
 */
export function getMyCards() {
    return request({
        url: prefix + '/businessCard/getMyCards',
        method: 'get'
    })
}

/**
 * 名片详情
 */
export function getDetail(params: object) {
    return request({
        url: prefix + '/businessCard/getDetail',
        method: 'get',
        params
    })
}

/**
 * 保存名片
 */
export function saveCard(data: object) {
    return request({
        url: prefix + '/businessCard/saveData',
        method: 'post',
        data
    })
}

/**
 * 获取用户的名片(非当前登录账户)
 */
export function getCardDetail(params: object) {
    return request({
        url: prefix + '/businessCard/getUserCards',
        method: 'get',
        params
    })
}